﻿<Page x:Class="WpfControlss.MenuSample"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="MenuSample">

    <Grid>
        <Menu Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" Name="menu1"  VerticalAlignment="Top" Width="61" >
            <MenuItem Header="编辑(_E)" >
                <MenuItem  Header="_New" IsCheckable="True"/>
                <MenuItem  Header="_Cut"   >
                    <MenuItem.Icon>
                        <Image Source="images/dog.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem  Header="_Paste" InputGestureText="Ctrl+P"/>
            </MenuItem>
        </Menu>
        <Menu Height="23" HorizontalAlignment="Left" Margin="21,74,0,0" Name="menu2" VerticalAlignment="Top" Width="61">
           
            <MenuItem Header="编辑(_E)">
                <MenuItem Header="_New" IsCheckable="True" />
                <MenuItem Header="_Cut">
                    <MenuItem.Icon>
                        <Image Source="images/dog.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="_Paste" InputGestureText="Ctrl+P" />
            </MenuItem>
        </Menu>
    </Grid>
</Page>
